package com.dirven.game.sprite;

import com.dirven.game.DirVenGame;
import com.dirven.game.NPC;

public class Shingo extends NPC {

	int dx; 
	int dy;
	
	public Shingo(float x, float y) {
		super(x, y, "Shingo", "Shingo_Stand.gif");
		
		dx = 1;
		dy = 0;
	}

	@Override
	public void move() {
		
		super.shiftPosition(dx,  dy);
		
		float newX = super.getX();
		float newY = super.getY();
				
		if(newX > DirVenGame.screenWidth) {
			super.setX( -super.getWidth() );
		}
		
		if(newY > DirVenGame.screenHeight) {
			super.setY( 0 );
		}
	}

}
